home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / util / misc / Fudgit233.lha / Source / src / Makefile.linux < prev    next >
Encoding:
Makefile  |  1993-12-14  |  3.1 KB  |  109 lines

  1. ###########################
  2. # Linux Makefile for FUDGIT
  3. ###########################
  4. #
  5. # macro definitions
  6. # Linker flags
  7. LDFLAGS = -lm -lreadline -ltermcap -Lreadline -lreadline
  8. # Final compiling flags
  9. FCFLAGS = $(OPT)
  10. # The following is for Linux 0.99pl4
  11. CFLAGS = $(OPT) -DNOMALLINFO -DNORINT -DNOTRUNC \
  12.     -DNOGAMMA -DNOCBRT -DVOID_SIGHANDLER -Werror -Wall
  13. # READLINE CFLAGS for Linux
  14. READLINE = OTH_CFLAGS="-D_POSIX_VERSION=199009L -DVOID_SIGHANDLER $(VI_MODE)"
  15.  
  16. # You should not need to edit anything below that line
  17. OBJECTS = mathparse.o fudgit.o alloc.o setshow.o vgetargp.o plot.o \
  18.     fits.o fit.o svdfit.o medfit.o help.o mrqmin.o \
  19.     command.o code.o math.o lexi.o init.o fft.o macro.o minit.o \
  20.     spline.o readline2.o chd.o if.o strings.o extramath.o
  21.  
  22. # The default shell
  23. SHELL = /bin/sh
  24. # Default compiler
  25. CC = cc
  26. YFLAGS = -d
  27. DATE = `cat ../Date`
  28. VERSION = `cat ../Version`
  29.  
  30. all: ../fudgit
  31.  
  32. ../fudgit: $(OBJECTS) fudgit.h setshow.h readline/libreadline.a
  33.     $(CC) $(FCFLAGS) -o ../fudgit $(OBJECTS) $(LDFLAGS)
  34.  
  35. math.tab.h: y.tab.h
  36.     cat y.tab.h | sed s/yy/Ft_mathyy/g > math.tab.h
  37.  
  38. y.tab.h: mathparse.o
  39.  
  40. readline/libreadline.a: 
  41.     (cd readline; make CC="$(CC)" $(READLINE) )
  42.  
  43. chd.o : chd.c fudgit.h head.h 
  44.  
  45. code.o : code.c symbol.h code.h math.tab.h fudgit.h head.h 
  46.     $(CC) -c $(CFLAGS) $(POP) code.c
  47.  
  48. command.o : command.c symbol.h code.h macro.h math.tab.h fudgit.h setshow.h \
  49.   functions.h help.h command.h readline/history.h head.h install.dummy.c 
  50.  
  51. fft.o : fft.c symbol.h code.h math.tab.h fudgit.h setshow.h functions.h dalloca.h \
  52.   head.h 
  53.  
  54. fit.o : fit.c head.h 
  55.  
  56. fits.o : fits.c symbol.h code.h math.tab.h fudgit.h setshow.h functions.h head.h 
  57.  
  58. fudgit.o : fudgit.c fudgit.h macro.h head.h setshow.h functions.h 
  59.     $(CC) $(CFLAGS) -DDATE="\"$(DATE)\"" -DVERSION="\"$(VERSION)\"" -c fudgit.c
  60.  
  61. help.o : help.c help.h fudgit.h command.h  help.c
  62.     $(CC) $(CFLAGS) -DHELPFILE="\"$(LIBDIR)/fudgit.help\"" -c help.c
  63.  
  64. if.o : if.c fudgit.h head.h 
  65.  
  66. init.o : init.c fudgit.h symbol.h code.h math.tab.h head.h 
  67.  
  68. install.o : install.c dld/dl/dl.h 
  69.  
  70. install.dummy.o : install.dummy.c 
  71.  
  72. lexi.o : lexi.c symbol.h code.h math.tab.h fudgit.h head.h 
  73.     $(CC) $(OPT) -c lexi.c
  74.  
  75. macro.o : macro.c fudgit.h macro.h setshow.h functions.h readline/history.h \
  76.   head.h symbol.h code.h math.tab.h 
  77.  
  78. math.o : math.c fudgit.h head.h symbol.h 
  79.  
  80. mathparse.o : symbol.h code.h parse.y
  81.     yacc $(YFLAGS) parse.y
  82.     cat y.tab.c | sed s/yy/Ft_mathyy/g > mathparse.c
  83.     rm y.tab.c
  84.     $(CC) $(OPT) -c mathparse.c
  85.  
  86. medfit.o : medfit.c dalloca.h head.h 
  87.  
  88. minit.o : minit.c fudgit.h setshow.h functions.h macro.h head.h 
  89.  
  90. mrqmin.o : mrqmin.c dalloca.h head.h 
  91.  
  92. plot.o : plot.c fudgit.h setshow.h functions.h macro.h head.h command.h 
  93.  
  94. readline2.o : readline2.c readline/readline.h readline/keymaps.h readline/chardefs.h \
  95.   readline/history.h fudgit.h command.h macro.h head.h 
  96.  
  97. setshow.o : setshow.c fudgit.h symbol.h macro.h code.h math.tab.h functions.h \
  98.   head.h 
  99.  
  100. spline.o : spline.c fudgit.h dalloca.h head.h 
  101.  
  102. strings.o : strings.c fudgit.h head.h 
  103.  
  104. strstr.o : strstr.c 
  105.  
  106. svdfit.o : svdfit.c dalloca.h head.h 
  107.  
  108. vgetargp.o : vgetargp.c fudgit.h macro.h symbol.h code.h math.tab.h head.h 
  109.